package com.dfbz.demo;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo05_字符串的切割方法 {
    public static void main(String[] args) {
        String s1 = "15878894561,15878894561,15878894561,15878894561,15878894561,15878894561";

        String[] strs = s1.split(",");

        for (int i = 0; i < strs.length; i++) {
            System.out.println(strs[i]);
        }

      /*  String newStr = s1.substring(2);            // llo world
        System.out.println(newStr);

        String newStr2 = s1.substring(3, 7);        // lo w
        System.out.println(newStr2);*/
    }
}
